import request from '@/utils/request'

// 查询会员任务列表
export function listMemberTask(query) {
  return request({
    url: '/member/memberTask/list',
    method: 'get',
    params: query
  })
}

// 查询会员任务详细
export function getMemberTask(id) {
  return request({
    url: '/member/memberTask/' + id,
    method: 'get'
  })
}

// 新增会员任务
export function addMemberTask(data) {
  return request({
    url: '/member/memberTask',
    method: 'post',
    data: data
  })
}

// 修改会员任务
export function updateMemberTask(data) {
  return request({
    url: '/member/memberTask',
    method: 'put',
    data: data
  })
}

// 删除会员任务
export function delMemberTask(id) {
  return request({
    url: '/member/memberTask/' + id,
    method: 'delete'
  })
}
